package main.common.utils;

/**
 * @author ChengGM
 * @create 2017-01-14 14:01
 **/
public enum  ResponseEnum {
    /**
     * 请求处理成功
     */
    REQUEST_SUCESS(10000,0,"请求处理成功"),
    /**
     * 参数类异常
     */
    P_E_PARAM_ISNULL(20001, 0, "参数不能为空"),
    P_E_PARAM_INVALID(20002, 0, "参数非法");

    private int code;
    private int compareCode;
    private String msg;

    private ResponseEnum(int code, int compareCode, String msg) {
        this.code = code;
        this.compareCode = compareCode;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCompareCode() {
        return compareCode;
    }
}



